Append items to an array